package com.erp.freight.mapper;

import com.erp.freight.domain.ErpProductFreightYanwen;
import com.erp.freight.domain.vo.ErpProductFreightYanwenVo;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Param;

/**
 * 运费试算模版（燕文物流公司运费格读取）Mapper接口
 *
 * @author erp
 * @date 2023-07-08
 */
public interface ErpProductFreightYanwenMapper extends BaseMapperPlus<ErpProductFreightYanwenMapper, ErpProductFreightYanwen, ErpProductFreightYanwenVo> {

    /**
     * 根据国家编码，获取运费计算模版
     * @param countryCode
     * @return
     */
    ErpProductFreightYanwen getFreightTemplateByCountryCode(@Param("countryCode") String countryCode,
                                                            @Param("weight") String weight,
                                                            @Param("zone") String zone,
                                                            @Param("freightType") String freightType);
}
